package com.eipc;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widget.ImageView;

public class ShowImageActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.show_image);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		initView();
		
		
		Intent i = getIntent();
		int image = R.drawable.game_map;
		
		String screen = null;
		if(i!=null){
			String im = i.getStringExtra("image");
			screen = i.getStringExtra("screen");
			if(im!=null && !"".equals(im)){
				image = getResources().getIdentifier(im, "drawable", getPackageName());
			}
		}
		mImageView.setImageResource(image);
		
	}
	
	private void initView(){
		mImageView = (ImageView)findViewById(R.id.iv_image);
	}
	
	private ImageView mImageView;
}
